<template>
  <div class="content">
    <Form>
      <FormItem label="方法名">
        <input type="text" v-model="value.method">
      </FormItem>
      <FormItem label="异步开关">
        <h-switch v-model="value.switch">开启后数据将从异步加载</h-switch>
      </FormItem>
      <FormItem label="关联字段">
        <input type="text" v-model="value.linkfield">
        <p>提示：如无需关联责留空</p>
      </FormItem>
      <FormItem label="父级字段">
        <input type="text" v-model="value.field.parentName">
        <p>提示：如果没有父级可不填</p>
      </FormItem>
      <FormItem label="键名字段">
        <input type="text" v-model="value.field.titleName">
      </FormItem>
      <FormItem label="键值字段">
        <input type="text" v-model="value.field.keyName">
      </FormItem>
      <FormItem label="初始父级">
        <input type="text" v-model="value.value.parentName">
        <p>提示：如果没有父级可不填</p>
      </FormItem>
      <FormItem label="初始键名">
        <input type="text" v-model="value.value.titleName">
      </FormItem>
      <FormItem label="初始键值">
        <input type="text" v-model="value.value.keyName">
      </FormItem>
    </Form>
  </div>
</template>
<script type="text/javascript">
export default {
  props: {
    value: [Array, Object]
  },
  data() {
    return {};
  },
  /**
   * 数据监听
   * @type {Object}
   */
  watch: {

  },
  /**
   * 页面加载执行
   * @return {[type]} [description]
   */
  async mounted() {

  },
  methods: {
    affirm(e) {
      let { handleCancel } = e;
      handleCancel();
    }
  }
};

</script>
<style lang="less" scoped="true">
</style>
